<template>
   <div class="todo_list">
            <div class="search-box">
                <van-search v-model="serchText" @search="onSearch" @blur="onSearch" placeholder="搜索标题、编号、关键字" />
            </div>
            <div class="scroll-warp">
                <zm-list ref="scrollWarp"></zm-list>
            </div>
    </div>
</template>
<script>
import { Search } from 'vant';
import zmList from "./zm-list"
export default {
    name:"list",
    components:{
        [Search.name]: Search,
        zmList,
    },
    data(){
        return {
             serchText: "",
            
        }
    },
    methods:{
         initData() {
         initData.searchData.keyword = this.serchText;
         initData.searchData.limit = 1;
         this.$refs.scrollWarp.getData(true);
        },
        onSearch() {
         initData.searchData.keyword = this.serchText;
         initData.searchData.limit = 1;
         this.$refs.scrollWarp.getData(true);
        },
    }
   
}
</script>

<style>

</style>